
import App from './App'
import Vue from 'vue'
import store from './store'
// 引入全局uView
import uView from '@/uni_modules/uview-ui'
import noData from 'components/no-data.vue'
import config from '@/common/config'
import calc from '@/util/calc.js'

Vue.config.productionTip = false

//无值的字段填充为--
Vue.prototype.filterNull = value => {
	if (value === 0) {
		return value;
	} else {
		return uni.$u.test.isEmpty(value) ? '--' : value
	}
}
console.log(config.baseImageUrl);
Vue.prototype.baseImageUrl = config.baseImageUrl
Vue.prototype.examBaseImageUrl = config.examBaseImageUrl

App.mpType = 'app'
Vue.use(uView)

//把无数据组件在这里导入
Vue.component('no-data', noData);

// filters
import * as filters from '@/util/filters'
for (const key in filters) {
	Vue.filter(key, filters[key])
}

const app = new Vue({
	store,
	...App
})

require('@/util/request')(app);
app.$mount()
